package com.zhilei.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 慕聘网运营管理系统的admin账户表，仅登录，不提供注册
 */
@Data
@TableName(value = "`admin`")
public class Admin {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 登录名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 用户混合加密的盐
     */
    @TableField(value = "slat")
    private String slat;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 头像
     */
    @TableField(value = "face")
    private String face;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "updated_time")
    private LocalDateTime updatedTime;

    /**
     * 用户当前登录的状态;0：正常；1：冻结；2：删除
     */
    @TableField(value = "`status`")
    private Integer status;
}
